﻿using System;
namespace FrankJie.Model
{
	/// <summary>
	/// 管理员实体类
	/// </summary>
	[Serializable]
	public partial class ManagerInfo
	{
		private int _id;
		private string _loginname="";
		private string _password="";
        private int _roleid = 1;
		private string _nickname="";
		private string _email="";
		private string _homepage="";
		private DateTime _createtime= DateTime.Now;
		private DateTime _lastlogtime= DateTime.Now;
		private string _lastlogip="";
		private bool _enabled= true;
		/// <summary>
		/// 管理员ID
		/// </summary>
		public int Id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 登录名
		/// </summary>
		public string LoginName
		{
			set{ _loginname=value;}
			get{return _loginname;}
		}
		/// <summary>
		/// 密码
		/// </summary>
		public string PassWord
		{
			set{ _password=value;}
			get{return _password;}
		}
        /// <summary>
        /// 权限 1超级管理员 2普通管理员
        /// </summary>
        public int RoleId
        {
            set { _roleid = value; }
            get { return _roleid; }
        }
		/// <summary>
		/// 管理员昵称
		/// </summary>
		public string NickName
		{
			set{ _nickname=value;}
			get{return _nickname;}
		}
		/// <summary>
		/// 管理员邮箱
		/// </summary>
		public string Email
		{
			set{ _email=value;}
			get{return _email;}
		}
		/// <summary>
		/// 管理员主页
		/// </summary>
		public string HomePage
		{
			set{ _homepage=value;}
			get{return _homepage;}
		}
		/// <summary>
		/// 创建时间
		/// </summary>
		public DateTime CreateTime
		{
			set{ _createtime=value;}
			get{return _createtime;}
		}
		/// <summary>
		/// 最后登录时间
		/// </summary>
		public DateTime LastLogTime
		{
			set{ _lastlogtime=value;}
			get{return _lastlogtime;}
		}
		/// <summary>
		/// 最后登录IP
		/// </summary>
		public string LastLogIp
		{
			set{ _lastlogip=value;}
			get{return _lastlogip;}
		}
		/// <summary>
		/// 是否活动
		/// </summary>
		public bool Enabled
		{
			set{ _enabled=value;}
			get{return _enabled;}
		}
	}
}

